package se.webbzon.oschi01.nbt;


abstract class AbstractTagFactory<T> implements TagFactory<T> {
	
	private final String name;
	private final byte id;
	private final boolean nameless;
	
	public AbstractTagFactory(byte id, String name) {
		this(id,name,false);
	}
	
	public AbstractTagFactory(byte id, String name, boolean nameless) {
		this.id = id;
		this.name = name;
		this.nameless = nameless;
	}

	@Override public byte getId() {
		return id;
	}
	
	@Override public boolean isNameless() {
		return nameless;
	}
	
	@Override public String toString() {
		return name;
	}

}
